
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantou1"></use>
                    </svg>
                    <div class="name">箭头-上</div>
                    <div class="fontclass">#icon-jiantou1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantou1-copy-copy"></use>
                    </svg>
                    <div class="name">箭头-下</div>
                    <div class="fontclass">#icon-jiantou1-copy-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-arrow"></use>
                    </svg>
                    <div class="name">arrow</div>
                    <div class="fontclass">#icon-arrow</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-delete1"></use>
                    </svg>
                    <div class="name">delete</div>
                    <div class="fontclass">#icon-delete1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-user"></use>
                    </svg>
                    <div class="name">user</div>
                    <div class="fontclass">#icon-user</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stytem-freya-icon-"></use>
                    </svg>
                    <div class="name">student</div>
                    <div class="fontclass">#icon-stytem-freya-icon-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tounao"></use>
                    </svg>
                    <div class="name">tounao</div>
                    <div class="fontclass">#icon-tounao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xulie"></use>
                    </svg>
                    <div class="name">xulie</div>
                    <div class="fontclass">#icon-xulie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-heart"></use>
                    </svg>
                    <div class="name">heart</div>
                    <div class="fontclass">#icon-heart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stytem"></use>
                    </svg>
                    <div class="name">stytem5</div>
                    <div class="fontclass">#icon-stytem</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stytem1"></use>
                    </svg>
                    <div class="name">stytem6</div>
                    <div class="fontclass">#icon-stytem1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stytem2"></use>
                    </svg>
                    <div class="name">stytem7</div>
                    <div class="fontclass">#icon-stytem2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stytem3"></use>
                    </svg>
                    <div class="name">stytem9</div>
                    <div class="fontclass">#icon-stytem3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--teacher"></use>
                    </svg>
                    <div class="name">003-teacher</div>
                    <div class="fontclass">#icon--teacher</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--conference"></use>
                    </svg>
                    <div class="name">002-conference</div>
                    <div class="fontclass">#icon--conference</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--group-"></use>
                    </svg>
                    <div class="name">006-group-1</div>
                    <div class="fontclass">#icon--group-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--team-"></use>
                    </svg>
                    <div class="name">001-team-1</div>
                    <div class="fontclass">#icon--team-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--edit"></use>
                    </svg>
                    <div class="name">008-edit</div>
                    <div class="fontclass">#icon--edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--group-1"></use>
                    </svg>
                    <div class="name">004-group-2</div>
                    <div class="fontclass">#icon--group-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--global"></use>
                    </svg>
                    <div class="name">003-global</div>
                    <div class="fontclass">#icon--global</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--organization"></use>
                    </svg>
                    <div class="name">005-organization</div>
                    <div class="fontclass">#icon--organization</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--group"></use>
                    </svg>
                    <div class="name">007-group</div>
                    <div class="fontclass">#icon--group</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--university-"></use>
                    </svg>
                    <div class="name">007-university-1</div>
                    <div class="fontclass">#icon--university-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--mortarboard"></use>
                    </svg>
                    <div class="name">012-mortarboard</div>
                    <div class="fontclass">#icon--mortarboard</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--education"></use>
                    </svg>
                    <div class="name">011-education</div>
                    <div class="fontclass">#icon--education</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--university"></use>
                    </svg>
                    <div class="name">010-university</div>
                    <div class="fontclass">#icon--university</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--apartment"></use>
                    </svg>
                    <div class="name">013-apartment</div>
                    <div class="fontclass">#icon--apartment</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--brain"></use>
                    </svg>
                    <div class="name">009-brain</div>
                    <div class="fontclass">#icon--brain</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--home-page"></use>
                    </svg>
                    <div class="name">031-home-page</div>
                    <div class="fontclass">#icon--home-page</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--town"></use>
                    </svg>
                    <div class="name">014-town</div>
                    <div class="fontclass">#icon--town</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--toy"></use>
                    </svg>
                    <div class="name">019-toy</div>
                    <div class="fontclass">#icon--toy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--museum-"></use>
                    </svg>
                    <div class="name">018-museum-1</div>
                    <div class="fontclass">#icon--museum-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--school-"></use>
                    </svg>
                    <div class="name">016-school-2</div>
                    <div class="fontclass">#icon--school-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--school"></use>
                    </svg>
                    <div class="name">013-school</div>
                    <div class="fontclass">#icon--school</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--ruler"></use>
                    </svg>
                    <div class="name">001-ruler</div>
                    <div class="fontclass">#icon--ruler</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder-"></use>
                    </svg>
                    <div class="name">001-folder-5</div>
                    <div class="fontclass">#icon--folder-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--gallery"></use>
                    </svg>
                    <div class="name">003-gallery</div>
                    <div class="fontclass">#icon--gallery</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder-1"></use>
                    </svg>
                    <div class="name">011-folder-4</div>
                    <div class="fontclass">#icon--folder-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder-2"></use>
                    </svg>
                    <div class="name">012-folder-3</div>
                    <div class="fontclass">#icon--folder-2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder-3"></use>
                    </svg>
                    <div class="name">013-folder-2</div>
                    <div class="fontclass">#icon--folder-3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder-4"></use>
                    </svg>
                    <div class="name">015-folder-1</div>
                    <div class="fontclass">#icon--folder-4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--folder"></use>
                    </svg>
                    <div class="name">016-folder</div>
                    <div class="fontclass">#icon--folder</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--list-"></use>
                    </svg>
                    <div class="name">014-list-1</div>
                    <div class="fontclass">#icon--list-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--save"></use>
                    </svg>
                    <div class="name">002-save</div>
                    <div class="fontclass">#icon--save</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--spreadsheet"></use>
                    </svg>
                    <div class="name">019-spreadsheet</div>
                    <div class="fontclass">#icon--spreadsheet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--pdf"></use>
                    </svg>
                    <div class="name">018-pdf</div>
                    <div class="fontclass">#icon--pdf</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--file"></use>
                    </svg>
                    <div class="name">022-file</div>
                    <div class="fontclass">#icon--file</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--server"></use>
                    </svg>
                    <div class="name">023-server</div>
                    <div class="fontclass">#icon--server</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--document"></use>
                    </svg>
                    <div class="name">024-document</div>
                    <div class="fontclass">#icon--document</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--list"></use>
                    </svg>
                    <div class="name">017-list</div>
                    <div class="fontclass">#icon--list</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--ui"></use>
                    </svg>
                    <div class="name">025-ui</div>
                    <div class="fontclass">#icon--ui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--cloud-computing-"></use>
                    </svg>
                    <div class="name">026-cloud-computing-</div>
                    <div class="fontclass">#icon--cloud-computing-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--electronic"></use>
                    </svg>
                    <div class="name">028-electronic</div>
                    <div class="fontclass">#icon--electronic</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--vpn"></use>
                    </svg>
                    <div class="name">030-vpn</div>
                    <div class="fontclass">#icon--vpn</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--tv"></use>
                    </svg>
                    <div class="name">029-tv</div>
                    <div class="fontclass">#icon--tv</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon--cloud-computing"></use>
                    </svg>
                    <div class="name">027-cloud-computing</div>
                    <div class="fontclass">#icon--cloud-computing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-arrow1L"></use>
                    </svg>
                    <div class="name">arrow1R</div>
                    <div class="fontclass">#icon-arrow1L</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-arrow1r"></use>
                    </svg>
                    <div class="name">arrow1R</div>
                    <div class="fontclass">#icon-arrow1r</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shezhi-copy"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#icon-shezhi-copy</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
